<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Konto bearbeiten (${user.vorname} ${user.nachname}) </title>
<link rel="stylesheet"
      href="jsp/css/profile_detail.css"
      type="text/css"/>
</head>
<body>

<jsp:include page="../utils/navigationObenAngemeldet.jsp" />

<c:if test='${user.email == foreignUser.email}'>
	<div class="zweitnavigation">
		<ul class="zweitnavi">
			<li class="zweitnaviaufzaehlung"><a target="_self"
				href="user?operation=modify">Konto bearbeiten</a>
			</li>
			<!-- 
			<li class="zweitnaviaufzaehlung"><a target="_self"
				href="user?operation=newMessage">Nachricht verfassen</a>
			</li> -->
		</ul>
	</div>
</c:if>

<div class="formular">
	<div id="ueberschrift">&Auml;ndern bzw. L&ouml;schen Ihrer Daten (${user.vorname} ${user.nachname}).</div>
	<jsp:include page="../utils/infomessage.jsp" />
	<form action="user?operation=modify&update=true" method="POST" >
		<p>Vorname:<br>
			<input name="vorname" class="feld" type="text" size="70" maxlength="150" value="${user.vorname}">
		</p>
		<p>Nachname:<br>
			<input name="nachname" class="feld" type="text" size="70" maxlength="150" value="${user.nachname}">
		</p>
		<p>Stra&szlig;e:<br>
			<input name="strasse" class="feld" type="text" size="70" maxlength="250" value="${user.strasse}">
		</p>
		<p>PLZ:<br>
			<input name="plz" class="feld" type="text" size="70" maxlength="4" value="${user.plz}">
		</p>
		<p>Ort:<br>
			<input name="ort" class="feld" type="text" size="70" maxlength="250" value="${user.ort}">
		</p>
		<p>Land:<br>
			<input name="land" class="feld" type="text" size="70" maxlength="250" value="${user.land}">
		</p>
		<p>Passwort:<br>
			<input name="passwort" class="feld" type="password" size="70" maxlength="34" value="${user.passwort}">
		</p>
		<p>Kreditkartennummer:<br>
			<input name="kreditkartennummer" class="feld" type="text" size="70" maxlength="10" value="${user.kreditkartennummer}">
		</p>
		<p>Kreditkarteninhaber:<br>
			<input name="kreditkarteninhaber" class="feld" type="text" size="70" maxlength="300" value="${user.kreditkarteninhaber}">
		</p>
		<p>Kreditkarteng&uuml;igkeit:<br>
			<input name="kreditkartegueltig" class="feld" type="text" size="70" maxlength="10" value="${user.kreditkartegueltig}">
		</p>
		<p>IBAN:<br>
			<input name="konto_IBAN" class="feld" type="text" size="70" maxlength="20" value="${user.iban}">
		</p>
		<p>BIC:<br>
			<input name="konto_BIC" class="feld" type="text" size="70" maxlength="20" value="${user.bic}">
		</p>
		<p>
			<input type="submit" class="button" value=" Absenden ">
    		<input type="reset" class="button" value=" Abbrechen ">
    	</p>
	</form>	
</div>
	
<jsp:include page="../utils/mininavi.jsp" />

</body>
</html>